-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix!: Change return type of GetDefaultCodeSecurityConfigurations
#3747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: Change return type of GetDefaultCodeSecurityConfigurations
#3747
Conversation
"name":"config2", | ||
"private_vulnerability_reporting": "enabled" | ||
}]`) | ||
"default_for_new_repos": "private", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private
is not an allowed value here. See https://docs.github.com/en/rest/code-security/configurations?apiVersion=2022-11-28#get-default-code-security-configurations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch :) fixed in latest commit
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3747 +/- ##
=======================================
Coverage 91.11% 91.11%
=======================================
Files 187 187
Lines 16702 16702
=======================================
Hits 15218 15218
Misses 1296 1296
Partials 188 188 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
GetDefaultCodeSecurityConfigurations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BREAKING CHANGE:
GetDefaultCodeSecurityConfigurations
now returnsCodeSecurityConfigurationWithDefaultForNewRepos
instead ofCodeSecurityConfiguration
.Modifies the return type of GetDefaultCodeSecurityConfigurations to match the response schema of the API.
Fixes: #3744.